package com.learn.xml_config.basic_config.factory;

import com.learn.xml_config.basic_config.beans.dao.UserDao;
import com.learn.xml_config.basic_config.beans.dao.UserDaoImpl;

public class InstanceBeanFactory {
    public UserDao userDao() {
        // 不同于BeanFactory立即创建Bean，创建Bean前可进行其他业务逻辑操作
        return new UserDaoImpl();
    }
}
